package com.example.mianshi.mianshiv2;

import lombok.Data;

/**
 * 文件类，利用单例工厂模式创建，也可以定义其他的文件格式的类。使用单例工厂模式创建
 */
@Data
public class MFile {
    private String id;
    private String groupId;
    private float quota;
    public MFile(){}

    public MFile(String id, String groupId, float quota) {
        this.id = id;
        this.groupId = groupId;
        this.quota = quota;
    }

    @Override
    public String toString() {
        return groupId + "," + id + "," + quota;
    }

}
